package com.atguigu.mapper;

import com.atguigu.base.BaseMapper;
import com.atguigu.entity.AdminRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 翟文海
 * @Date: 2022/11/2/002 15:28
 * @Version: 1.0
 * @Description:
 **/
public interface AdminRoleMapper extends BaseMapper<AdminRole> {
    List<Long> findRoleIdListByAdminId(Long id);

    void insertBatch(@Param("adminRoles") List<AdminRole> adminRoles);

    List<Long> findListByAdminId(Long adminId);

    void deleteBatch(@Param("adminId") Long adminId,@Param("removeList") List<Long> removeList);

    AdminRole findByAdminIdAndRoleId(@Param("adminId")Long adminId,@Param("roleId") Long roleId);
}
